package com.wang.designpattern.strategy;

import com.wang.designpattern.strategy.behavior.NoFlyBehavior;
import com.wang.designpattern.strategy.behavior.NoQuackBehavior;

public class ToyDuck extends Duck {

    public ToyDuck() {
        flyBehavior = new NoFlyBehavior();
        quackBehavior = new NoQuackBehavior();
    }

    @Override
    public void display() {
        System.out.println("玩具鸭 ");
    }
}
